package com.lin.service;

import com.lin.base.Role;
import com.lin.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lin
 * @since 2022-06-17
 */
public interface UserService extends IService<User> {
    Boolean saveUser(User user);

    User getUser(Integer uid);

    List<GrantedAuthority> getRole(Integer uid);

    Boolean hasRole(Integer uid, Role role);
}
